const {ccclass, property} = cc._decorator;

@ccclass
export default class itemChat extends cc.Component {

    @property(cc.Label)
    labName: cc.Label = null;

    @property(cc.Label)
    labMsg: cc.Label = null;

    init(data:any){
        this.labName.string = data.name;
        this.labMsg.string = data.msg;
    }
}
